calculate HCF of two numbers